package com.fivefu.core.hillstone.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "hillstone")
public class HillstoneProperties {

    /**
     * 大华接口地址
     * eg: https://58.210.64.42:8443
     */
    private String baseurl; //正式访问地址

    /**
     * 账号
     */
    private String username;//账号

    /**
     * 密码
     */
    private String password;//密码

    /**
     * 客户端类型
     */
    private String clientType;//客户端类型

    /**
     * 版本
     * 1 / 2
     */
    private Integer version;//版本

    /**
     * 是否启用ssl
     */
    private Boolean useSSL;//是否启用

    /**
     * 鉴权成功码
     */
    private Integer tokenSuccessCode;//鉴权成功码

    public String getBaseurl() {
        return baseurl;
    }

    public void setBaseurl(String baseurl) {
        this.baseurl = baseurl;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getClientType() {
        return clientType;
    }

    public void setClientType(String clientType) {
        this.clientType = clientType;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Boolean getUseSSL() {
        return useSSL;
    }

    public void setUseSSL(Boolean useSSL) {
        this.useSSL = useSSL;
    }

    public Integer getTokenSuccessCode() {
        return tokenSuccessCode;
    }

    public void setTokenSuccessCode(Integer tokenSuccessCode) {
        this.tokenSuccessCode = tokenSuccessCode;
    }
}
